package org.xserver.disruptor.producer;

import java.lang.reflect.Method;

import org.xserver.component.core.websocket.WSMessage;

public class WebsocketEvent {
	public WebsocketEvent() {
	}

	

	public WebsocketEvent(Method method, Class<?> clazz, WSMessage wxMessage,
			String channelId) {
		super();
		this.method = method;
		this.clazz = clazz;
		this.wxMessage = wxMessage;
		this.channelId = channelId;
	}



	public static WebsocketEvent getInstance(Method method, Class<?> clazz, WSMessage wxMessage,
			String channelId){
		return new WebsocketEvent(method,clazz,wxMessage, channelId);
	}
	private Method method;
	private Class<?> clazz;
	private WSMessage wxMessage;
	private String channelId;
	public WSMessage getWxMessage() {
		return wxMessage;
	}
	public void setWxMessage(WSMessage wxMessage) {
		this.wxMessage = wxMessage;
	}
	public String getChannelId() {
		return channelId;
	}
	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public Class<?> getClazz() {
		return clazz;
	}

	public void setClazz(Class<?> clazz) {
		this.clazz = clazz;
	}
}
